<template>
<HeaderVue class="subheader">
        <div slot="left" class="header-left" @click.stop="back"></div>
        <div slot="center" class="header-title">{{title}}</div>
        <div slot="right" class="header-right"></div>
  </HeaderVue>
</template>

<script>
import HeaderVue from '../Header.vue'
export default {
  name: 'SubHeader',
  methods: {
      back(){
          window.history.back()
      }
  },
  props:{
      title:{
          type:String,
          default:'',
          required:true
      }
  },
  components:{
      HeaderVue
  }
}
</script>

<style scoped lang="scss">
@import '../../assets/css/variable.scss';
@import '../../assets/css/mixin.scss';
.subheader{
    width: 100%;
    height: 100px;
    @include bg_color();
    display: flex;
    justify-content: space-between;
    position: absolute;
    z-index: 999;
    .header-left{
        @include bg_img('../../assets/images/back')
    }
    .header-right{
        @include bg_img('../../assets/images/more')
    }
    .header-title{
        text-align: center;
        line-height: 100px;
        color: #fff;
        font-weight: bold;
        @include font_size($font_medium);
        @include no-wrap()
    }
}
</style>
